package org.example.springboot.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.example.springboot.common.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

/**
*
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2024-11-19
*/
@Data
@Schema(description = "")
public class FmcControlVO implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	@Schema(description = "uuid")
	private String uuid;

	@Schema(description = "项目编码")
	private String pid;

	@Schema(description = "设备编码")
	private String did;

	@Schema(description = "电磁阀状态 1:开启 0:关闭")
	private Integer valt;

	@Schema(description = "灌溉单元编号")
	private String unitCode;

	@Schema(description = "灌溉方式 0 定量灌溉 1 周期灌溉 2 水分控制灌溉  3 ET决策灌溉")
	private String type;

	@Schema(description = "操作用户id")
	private String userId;

	@Schema(description = "操作时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date operationTime;

	@Schema(description = "控制命令发送状态 成功：SUCCESS  失败：FAIL")
	private String status;

	@Schema(description = "异常信息")
	private String exMsg;

	@Schema(description = "订阅主题")
	private String topic;



	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createDate;

	@Schema(description = "更新时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateDate;


}